package cn.edu.scau.cmi.guihao.domin.safetyComponent;

import java.util.ArrayList;
import java.util.List;

import cn.edu.scau.cmi.guihao.interProgramming.safetyComponent.Organization;

public class SmallOrganization extends Organization{

	private List<Organization> organizations = new ArrayList<Organization>();
	
	public SmallOrganization(String name) {
		this.name = name;
	}
	
	
	public void addOrganization(Organization organization) {
		organizations.add(organization);
	}


	public String display() {
		String s = "This is a organization.Name is " + this.name;
		for(Organization organization : organizations) {
			s=s+"\n"+organization.display();
		}
		return s;
	}

}
